.class Lcom/waiqin365/lightapp/syorder/product/a/g;
.super Lcom/waiqin365/lightapp/syorder/c/a;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/syorder/product/a/l;

.field final synthetic b:Lcom/waiqin365/lightapp/syorder/product/a/a;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/syorder/product/a/a;DDLandroid/widget/EditText;Ljava/lang/String;Ljava/lang/String;Lcom/waiqin365/lightapp/syorder/product/a/l;)V
    .locals 12

    iput-object p1, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->b:Lcom/waiqin365/lightapp/syorder/product/a/a;

    move-object/from16 v0, p9

    iput-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    move-object v3, p0

    move-wide v4, p2

    move-wide/from16 v6, p4

    move-object/from16 v8, p6

    move-object/from16 v9, p7

    move-object/from16 v10, p8

    invoke-direct/range {v3 .. v10}, Lcom/waiqin365/lightapp/syorder/c/a;-><init>(DDLandroid/widget/EditText;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 11

    const/4 v5, 0x0

    const-wide v8, 0x3e45798ee2308c3aL    # 1.0E-8

    const/4 v10, 0x2

    const/4 v4, 0x1

    const-wide/16 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/product/a/l;->o:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->hasFocus()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/product/a/l;->k:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/syorder/d/b;

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->k:D

    sub-double/2addr v6, v8

    cmpl-double v1, v6, v2

    if-lez v1, :cond_3

    iget-wide v0, v0, Lcom/waiqin365/lightapp/syorder/d/b;->k:D

    sub-double/2addr v0, v8

    :goto_1
    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/syorder/product/a/g;->a(D)V

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/syorder/c/a;->afterTextChanged(Landroid/text/Editable;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/syorder/product/a/g;->a()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "."

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/product/a/l;->k:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/syorder/d/b;

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    cmpl-double v1, v6, v2

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/syorder/d/b;->o:Ljava/lang/String;

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->h:D

    iget-wide v8, v0, Lcom/waiqin365/lightapp/syorder/d/b;->D:D

    cmpl-double v1, v6, v8

    if-nez v1, :cond_6

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->i:D

    iget-wide v8, v0, Lcom/waiqin365/lightapp/syorder/d/b;->h:D

    cmpg-double v1, v6, v8

    if-gtz v1, :cond_2

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->D:D

    iget-wide v8, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    mul-double/2addr v6, v8

    iget-object v1, v0, Lcom/waiqin365/lightapp/syorder/d/b;->o:Ljava/lang/String;

    invoke-static {v1, v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;D)D

    move-result-wide v8

    sub-double/2addr v6, v8

    iput-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->l:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->D:D

    iget-wide v8, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    mul-double/2addr v6, v8

    iput-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->k:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    cmpl-double v1, v6, v2

    if-nez v1, :cond_4

    :goto_2
    iput-wide v2, v0, Lcom/waiqin365/lightapp/syorder/d/b;->i:D

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v2, v1, Lcom/waiqin365/lightapp/syorder/product/a/l;->m:Lcom/waiqin365/lightapp/view/EditTextHasClear;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->i:D

    invoke-virtual {v1, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v3, ""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/product/a/l;->m:Lcom/waiqin365/lightapp/view/EditTextHasClear;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/EditTextHasClear;->isEnabled()Z

    move-result v1

    if-nez v1, :cond_5

    move v1, v4

    :goto_3
    invoke-static {v3, v10, v1}, Lcom/waiqin365/lightapp/product/e/b;->b(Ljava/lang/String;IZ)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/view/EditTextHasClear;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/product/a/l;->g:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "\u00a5 "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->l:D

    invoke-virtual {v3, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, ""

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v10, v4}, Lcom/waiqin365/lightapp/product/e/b;->b(Ljava/lang/String;IZ)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_2
    :goto_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->b:Lcom/waiqin365/lightapp/syorder/product/a/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/a/a;->b(Lcom/waiqin365/lightapp/syorder/product/a/a;)Lcom/waiqin365/lightapp/syorder/product/a/j;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->b:Lcom/waiqin365/lightapp/syorder/product/a/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/a/a;->b(Lcom/waiqin365/lightapp/syorder/product/a/a;)Lcom/waiqin365/lightapp/syorder/product/a/j;

    move-result-object v0

    invoke-interface {v0}, Lcom/waiqin365/lightapp/syorder/product/a/j;->a()V

    goto/16 :goto_0

    :cond_3
    move-wide v0, v2

    goto/16 :goto_1

    :cond_4
    iget-wide v2, v0, Lcom/waiqin365/lightapp/syorder/d/b;->l:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    div-double/2addr v2, v6

    goto :goto_2

    :cond_5
    move v1, v5

    goto :goto_3

    :cond_6
    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->h:D

    iget-wide v8, v0, Lcom/waiqin365/lightapp/syorder/d/b;->D:D

    cmpl-double v1, v6, v8

    if-lez v1, :cond_2

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->D:D

    iget-wide v8, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    mul-double/2addr v6, v8

    iget-object v1, v0, Lcom/waiqin365/lightapp/syorder/d/b;->o:Ljava/lang/String;

    invoke-static {v1, v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;D)D

    move-result-wide v8

    sub-double/2addr v6, v8

    iput-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->l:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->D:D

    iget-wide v8, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    mul-double/2addr v6, v8

    iput-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->k:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    cmpl-double v1, v6, v2

    if-nez v1, :cond_8

    :goto_5
    iput-wide v2, v0, Lcom/waiqin365/lightapp/syorder/d/b;->i:D

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/product/a/l;->m:Lcom/waiqin365/lightapp/view/EditTextHasClear;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->i:D

    invoke-virtual {v2, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v3, v3, Lcom/waiqin365/lightapp/syorder/product/a/l;->m:Lcom/waiqin365/lightapp/view/EditTextHasClear;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/view/EditTextHasClear;->isEnabled()Z

    move-result v3

    if-nez v3, :cond_7

    move v5, v4

    :cond_7
    invoke-static {v2, v10, v5}, Lcom/waiqin365/lightapp/product/e/b;->b(Ljava/lang/String;IZ)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/EditTextHasClear;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/g;->a:Lcom/waiqin365/lightapp/syorder/product/a/l;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/product/a/l;->g:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "\u00a5 "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->l:D

    invoke-virtual {v3, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, ""

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v10, v4}, Lcom/waiqin365/lightapp/product/e/b;->b(Ljava/lang/String;IZ)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_4

    :cond_8
    iget-wide v2, v0, Lcom/waiqin365/lightapp/syorder/d/b;->l:D

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    div-double/2addr v2, v6

    goto :goto_5
.end method
